package app;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Queue;

public class App {

    public static void main(String[] args) {
        ArrayList a = new ArrayList();
        a.add("f");
        a.add("fd");
        a.add("fdf");
        a.add(1);
        ArrayList b = a;
        List<ArrayList> c = new List<ArrayList>(a);
        List<ArrayList> d = new List<ArrayList>(b);
        System.out.println(c.getA().get(1).equals(d.getA().get(1)));
        HashMap<String, String> s = new HashMap<String, String>();
        HashMap<Integer, String> x = new HashMap<Integer, String>();
        Queue<Integer> queue = new LinkedList<Integer>();
        s.put("1", "2");
        s.put(s.get("1"), "3");
        s.put(s.get("2"), "4");
        System.out.println();
        x.put(Integer.valueOf(20), "hgfhgf");
        x.put(Integer.valueOf(20), "hhgf");
        x.put(Integer.valueOf(20), "hfhgf");
        System.out.println(x.keySet());
        System.out.println(x.get(20));
        queue.add(20);
        queue.add(30);
        queue.add(40);
        System.out.println(queue);
        System.out.println(queue.poll());
        System.out.println(queue);
        
    }
}
